from presenter import basepresenter

class AdminArticlePresenter(basepresenter.BasePresenter):

    def respondToGet(self):
        #get the articles
        articles = self.articletask.getAll()
        self.template_values['articles'] = articles

        # set up the page title
        page_title = self.sitetitle + ' - Article Admin'
        self.template_values['page_title'] = page_title

        #get the view to draw the page
        self.view.showGetResponse(self.template_values)